package com.erclab.xpresso.formelements
{
	import mx.controls.CheckBox;
	import mx.core.UIComponent;

	public class CheckBox extends mx.controls.CheckBox implements FormElement {

		protected var destinationColumn:String;
		
		public function getName():String{
			return String(this.name);
		}

		public function getValue():String{
			return String(this.selected);
		}
		
		public function createLabel(attachingElement:UIComponent, label:String):void {
			// Not necessary for Checkbox
		}
		
		public function setValue(value:String):void{
			
		}
		
		public function getAttribute(attribute:String):String{
			return this[attribute];
		}
		
		public function setAttribute(attribute:String, attributeValue:String):void{
			this[attribute] = attributeValue;
		}

		public function prepareForInsert():void{
			this.selected = false;
		}

	}
}